package com.zerosky.crm.dao;

import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.Activity;
import com.zerosky.crm.po.PersonalWorkPlan;

/**PersonalWorkPlan数据接口
 * @author yanglingchao;
 * @since 2017-07-31
 */
public interface PersonalWorkPlanDAO {
	/**
	 * PersonalWorkPlan列表数据接口
	 * @param map
	 * @return
	 */
	public List<PersonalWorkPlan> getPersonalWorkPlanList(Map map);
	
	/**
	 * 通过主键查找PersonalWorkPlan数据接口 
	 * @param id 主键ID
	 * @return
	 */
	public PersonalWorkPlan getPersonalWorkPlanById(String id);
	
	/**
	 * 统计个人工作计划的数目
	 * @param map
	 * @return
	 */
	public int countPersonalWorkPlan(Map map);
	
	/**
	 * 添加PersonalWorkPlan数据接口
	 * @param personalWorkPlan 对象
	 * @return
	 * @throws Exception
	 */
	public int insertPersonalWorkPlan(PersonalWorkPlan personalWorkPlan) throws Exception;
	
	/**
	 * 修改PersonalWorkPlan数据接口
	 * @param personalWorkPlan 对象
	 * @return
	 * @throws Exception
	 */
	public int updatePersonalWorkPlan(PersonalWorkPlan personalWorkPlan) throws Exception;
	
	/**
	 * 根据id删除记录
	 * @param id 
	 * @return
	 */
	public int deletePersonalWorkPlan(int id) throws Exception;
}
